200 |
How can I align the column to the right
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.Columns.Add("Column").Alignment = 2; G2antt1.Items.AddItem(0); G2antt1.Items.AddItem(1); } </SCRIPT> </BODY> |
199 |
How do I change the column's caption
|
198 |
Can I change the visual effect, appearance for the anchor, hyperlink elements, in HTML captions, after the user clicks it
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.FormatAnchor(false) = "<b><u><fgcolor=880000> </fgcolor></u></b>"; G2antt1.Columns.Add("Column"); var var_Items = G2antt1.Items; var_Items.CellValueFormat(var_Items.AddItem("Just an <a1>anchor</a> element ..."),0) = 1; var var_Items1 = G2antt1.Items; var_Items1.CellValueFormat(var_Items1.AddItem("Just another <a2>anchor</a> element ..."),0) = 1; G2antt1.Items.AddItem("next item"); } </SCRIPT> </BODY> |
197 |
Can I change the visual effect, appearance for the anchor, hyperlink elements, in HTML captions
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.FormatAnchor(true) = "<b><u><fgcolor=FF0000> </fgcolor></u></b>"; G2antt1.Columns.Add("Column"); var var_Items = G2antt1.Items; var_Items.CellValueFormat(var_Items.AddItem("Just an <a1>anchor</a> element ..."),0) = 1; var var_Items1 = G2antt1.Items; var_Items1.CellValueFormat(var_Items1.AddItem("Just another <a2>anchor</a> element ..."),0) = 1; } </SCRIPT> </BODY> |
196 |
Can I change the font for the tooltip
|
195 |
Can I change the font for the tooltip
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.ToolTipDelay = 1; var var_StdFont = G2antt1.ToolTipFont; var_StdFont.Name = "Tahoma"; var_StdFont.Size = 14; G2antt1.ToolTipWidth = 364; G2antt1.Columns.Add("tootip").ToolTip = "this is a tooltip assigned to a column"; } </SCRIPT> </BODY> |
194 |
Can I change the order of the buttons in the scroll bar
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.ScrollOrderParts(1) = "t,l,r"; G2antt1.ScrollOrderParts(0) = "t,l,r"; G2antt1.ScrollBars = 15; } </SCRIPT> </BODY> |
193 |
The thumb size seems to be very small. Can I make it bigger
|
192 |
How can I display my text on the scroll bar, using a different font
|
191 |
How can I display my text on the scroll bar, using a different font
|
190 |
How can I display my text on the scroll bar
|
189 |
How do I enlarge or change the size of the control's scrollbars
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.ScrollHeight = 18; G2antt1.ScrollWidth = 18; G2antt1.ScrollButtonWidth = 18; G2antt1.ScrollButtonHeight = 18; G2antt1.ScrollBars = 15; } </SCRIPT> </BODY> |
188 |
How do I assign a tooltip to a scrollbar
|
187 |
How do I assign an icon to the button in the scrollbar
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); G2antt1.ScrollPartVisible(1,32768) = true; G2antt1.ScrollPartCaption(1,32768) = "<img>1</img>"; G2antt1.ScrollHeight = 18; G2antt1.ScrollButtonWidth = 18; G2antt1.ScrollBars = 5; } </SCRIPT> </BODY> |
186 |
I need to add a button in the scroll bar. Is this possible
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.ScrollPartVisible(1,32768) = true; G2antt1.ScrollPartCaption(1,32768) = "1"; G2antt1.ScrollBars = 5; } </SCRIPT> </BODY> |
185 |
Can I display an additional buttons in the scroll bar
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.ScrollPartVisible(1,32768) = true; G2antt1.ScrollPartVisible(1,16384) = true; G2antt1.ScrollPartVisible(1,1) = true; G2antt1.ScrollPartVisible(1,2) = true; G2antt1.ScrollBars = 5; } </SCRIPT> </BODY> |
184 |
Can I display the picture aligned to the right, while the text aligned to the left
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.DefaultItemHeight = 48; G2antt1.Columns.Add("C1"); var var_Items = G2antt1.Items; var s = var_Items.SplitCell(var_Items.AddItem("Text"),0); var_Items.CellPicture(null,s) = G2antt1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"); var_Items.CellHAlignment(null,s) = 2; } </SCRIPT> </BODY> |
183 |
How can I display a custom size picture to a cell or item
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.DefaultItemHeight = 48; G2antt1.Columns.Add("C1"); var var_Items = G2antt1.Items; var_Items.CellPicture(var_Items.AddItem("Text"),0) = G2antt1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"); } </SCRIPT> </BODY> |
182 |
How can I display a multiple pictures to a cell or item
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.DefaultItemHeight = 48; G2antt1.HTMLPicture("pic1") = "c:\\exontrol\\images\\zipdisk.gif"; G2antt1.HTMLPicture("pic2") = "c:\\exontrol\\images\\auction.gif"; G2antt1.Columns.Add("C1"); var var_Items = G2antt1.Items; var_Items.CellValueFormat(var_Items.AddItem("<img>pic1</img> Text <img>pic2</img> another text ..."),0) = 1; } </SCRIPT> </BODY> |
181 |
How do I change the column's foreground color for numbers between an interval - Range
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { var var_ConditionalFormat = G2antt1.ConditionalFormats.Add("dbl(%0) >= 2 and dbl(%0) <= 10",null); var_ConditionalFormat.Bold = true; var_ConditionalFormat.ForeColor = 255; var_ConditionalFormat.ApplyTo = 1; G2antt1.Columns.Add("N1"); G2antt1.Columns.Add("N2"); var var_Items = G2antt1.Items; var_Items.CellValue(var_Items.AddItem(1),1) = 2; var var_Items1 = G2antt1.Items; var_Items1.CellValue(var_Items1.AddItem(3),1) = 3; var var_Items2 = G2antt1.Items; var_Items2.CellValue(var_Items2.AddItem(10),1) = 11; var var_Items3 = G2antt1.Items; var_Items3.CellValue(var_Items3.AddItem(13),1) = 31; G2antt1.SearchColumnIndex = 1; } </SCRIPT> </BODY> |
180 |
How do I change the item's foreground color for numbers between an interval - Range
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.ConditionalFormats.Add("dbl(%0) >= 2 and dbl(%0) <= 10",null).ForeColor = 255; G2antt1.Columns.Add("Numbers"); G2antt1.Items.AddItem(1); G2antt1.Items.AddItem(2); G2antt1.Items.AddItem(10); G2antt1.Items.AddItem(20); } </SCRIPT> </BODY> |
179 |
How do I change the item's background color for numbers less than a value
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.ConditionalFormats.Add("dbl(%0) < 10",null).BackColor = 255; G2antt1.Columns.Add("Numbers"); G2antt1.Items.AddItem(1); G2antt1.Items.AddItem(2); G2antt1.Items.AddItem(10); G2antt1.Items.AddItem(20); } </SCRIPT> </BODY> |
178 |
How do I underline the numbers greater than a value
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.ConditionalFormats.Add("dbl(%0) >= 10",null).Underline = true; G2antt1.Columns.Add("Numbers"); G2antt1.Items.AddItem(1); G2antt1.Items.AddItem(2); G2antt1.Items.AddItem(10); G2antt1.Items.AddItem(20); } </SCRIPT> </BODY> |
177 |
How do I highlight in italic the numbers greater than a value
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.ConditionalFormats.Add("dbl(%0) >= 10",null).StrikeOut = true; G2antt1.Columns.Add("Numbers"); G2antt1.Items.AddItem(1); G2antt1.Items.AddItem(2); G2antt1.Items.AddItem(10); G2antt1.Items.AddItem(20); } </SCRIPT> </BODY> |
176 |
How do I highlight in italic the numbers greater than a value
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.ConditionalFormats.Add("dbl(%0) >= 10",null).Italic = true; G2antt1.Columns.Add("Numbers"); G2antt1.Items.AddItem(1); G2antt1.Items.AddItem(2); G2antt1.Items.AddItem(10); G2antt1.Items.AddItem(20); } </SCRIPT> </BODY> |
175 |
How do I highlight in bold the numbers greater than a value
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.ConditionalFormats.Add("dbl(%0) >= 10",null).Bold = true; G2antt1.Columns.Add("Numbers"); G2antt1.Items.AddItem(1); G2antt1.Items.AddItem(2); G2antt1.Items.AddItem(10); G2antt1.Items.AddItem(20); } </SCRIPT> </BODY> |
174 |
Can I use your EBN files to change the visual appearance for +/- expand - collapse buttons
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn"); G2antt1.VisualAppearance.Add(2,"c:\\exontrol\\images\\pushed.ebn"); G2antt1.LinesAtRoot = 1; G2antt1.HasButtons = 4; G2antt1.HasButtonsCustom(0) = 16777216; G2antt1.HasButtonsCustom(1) = 33554432; G2antt1.Columns.Add("Column"); var var_Items = G2antt1.Items; var h = var_Items.AddItem("Root 1"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.ExpandItem(h) = true; h = var_Items.AddItem("Root 2"); var_Items.InsertItem(h,null,"Child"); } </SCRIPT> </BODY> |
173 |
Can I use your EBN files to change the visual appearance for radio buttons
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn"); G2antt1.VisualAppearance.Add(2,"c:\\exontrol\\images\\pushed.ebn"); G2antt1.RadioImage(0) = 16777216; G2antt1.RadioImage(1) = 33554432; G2antt1.Columns.Add("Radio").Def(1) = true; var var_Items = G2antt1.Items; var_Items.AddItem("Radio 1"); var_Items.CellState(var_Items.AddItem("Radio 2"),0) = 1; var_Items.AddItem("Radio 3"); } </SCRIPT> </BODY> |
172 |
Can I use your EBN files to change the visual appearance for checkbox cells
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn"); G2antt1.VisualAppearance.Add(2,"c:\\exontrol\\images\\pushed.ebn"); G2antt1.CheckImage(0) = 16777216; G2antt1.CheckImage(1) = 33554432; G2antt1.Columns.Add("Check").Def(0) = true; var var_Items = G2antt1.Items; var_Items.AddItem("Check 1"); var_Items.CellState(var_Items.AddItem("Check 2"),0) = 1; } </SCRIPT> </BODY> |
171 |
How do I change the visual aspect for thumb parts in the scroll bars, using EBN
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.BeginUpdate(); var var_Appearance = G2antt1.VisualAppearance; var_Appearance.Add(1,"c:\\exontrol\\images\\normal.ebn"); var_Appearance.Add(2,"c:\\exontrol\\images\\pushed.ebn"); var_Appearance.Add(3,"c:\\exontrol\\images\\hot.ebn"); G2antt1.Background(388) = 16777216; G2antt1.Background(389) = 33554432; G2antt1.Background(391) = 50331648; G2antt1.Background(260) = 16777216; G2antt1.Background(261) = 33554432; G2antt1.Background(263) = 50331648; G2antt1.ScrollBars = 3855; G2antt1.ScrollBySingleLine = true; G2antt1.Columns.Add("Def"); var var_Items = G2antt1.Items; var_Items.AddItem(1); var_Items.AddItem(2); var_Items.AddItem(3); G2antt1.EndUpdate(); } </SCRIPT> </BODY> |
170 |
How do I change the visual aspect only for the thumb in the scroll bar, using EBN
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.BeginUpdate(); var var_Appearance = G2antt1.VisualAppearance; var_Appearance.Add(1,"c:\\exontrol\\images\\normal.ebn"); var_Appearance.Add(2,"c:\\exontrol\\images\\pushed.ebn"); var_Appearance.Add(3,"c:\\exontrol\\images\\hot.ebn"); G2antt1.Background(388) = 16777216; G2antt1.Background(389) = 33554432; G2antt1.Background(391) = 50331648; G2antt1.ScrollBars = 3855; G2antt1.ScrollBySingleLine = true; G2antt1.Columns.Add("Def"); var var_Items = G2antt1.Items; var_Items.AddItem(1); var_Items.AddItem(2); var_Items.AddItem(3); G2antt1.EndUpdate(); } </SCRIPT> </BODY> |
169 |
I've seen that you can change the visual appearance for the scroll bar. How can I do that
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn"); G2antt1.VisualAppearance.Add(2,"c:\\exontrol\\images\\pushed.ebn"); G2antt1.VisualAppearance.Add(3,"c:\\exontrol\\images\\hot.ebn"); G2antt1.Background(324) = 16777216; G2antt1.Background(325) = 33554432; G2antt1.Background(327) = 50331648; G2antt1.Background(404) = 15790320; G2antt1.Background(276) = 15790320; G2antt1.Background(511) = 15790320; G2antt1.Columns.Add("S").Width = 32; G2antt1.Columns.Add("Level 1").LevelKey = 1; G2antt1.Columns.Add("Level 2").LevelKey = 1; G2antt1.Columns.Add("Level 3").LevelKey = 1; G2antt1.Columns.Add("E1").Width = 32; G2antt1.Columns.Add("E2").Width = 32; G2antt1.Columns.Add("E3").Width = 32; G2antt1.Columns.Add("E4").Width = 32; G2antt1.ColumnAutoResize = false; G2antt1.ScrollBars = 15; } </SCRIPT> </BODY> |
168 |
Is there any option to highligth the column from the cursor - point
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn"); G2antt1.Background(32) = 16777216; G2antt1.Columns.Add("S").Width = 32; G2antt1.Columns.Add("Level 1").LevelKey = 1; G2antt1.Columns.Add("Level 2").LevelKey = 1; G2antt1.Columns.Add("Level 3").LevelKey = 1; G2antt1.Columns.Add("E1").Width = 32; G2antt1.Columns.Add("E2").Width = 32; G2antt1.Columns.Add("E3").Width = 32; G2antt1.Columns.Add("E4").Width = 32; } </SCRIPT> </BODY> |
167 |
How do I change the visual aspect of selected item in the drop down filter window, using your EBN technology
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn"); G2antt1.Background(20) = 16777216; G2antt1.Background(21) = 1316095; G2antt1.Columns.Add("Filter").DisplayFilterButton = true; } </SCRIPT> </BODY> |
166 |
How do I change the visual aspect of the drop down calendar window, that shows up if I click the drop down filter button, using EBN
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn"); G2antt1.VisualAppearance.Add(2,"c:\\exontrol\\images\\pushed.ebn"); G2antt1.Background(8) = 16777216; G2antt1.Background(9) = 16777216; G2antt1.Background(10) = 33554432; G2antt1.Background(11) = 16777216; G2antt1.Background(12) = 15132390; G2antt1.Background(13) = 15132390; G2antt1.Background(14) = 16777216; var var_Column = G2antt1.Columns.Add("Date"); var_Column.FilterType = 4; var_Column.DisplayFilterButton = true; var_Column.DisplayFilterDate = true; } </SCRIPT> </BODY> |
165 |
How do I change the visual aspect of the close button in the filter bar, using EBN
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn"); G2antt1.Background(1) = 16777216; G2antt1.Columns.Add("Filter").FilterType = 1; G2antt1.ApplyFilter(); } </SCRIPT> </BODY> |
164 |
How do I change the visual aspect of buttons in the cell, using EBN
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn"); G2antt1.VisualAppearance.Add(2,"c:\\exontrol\\images\\pushed.ebn"); G2antt1.Background(2) = 16777216; G2antt1.Background(3) = 33554432; G2antt1.SelForeColor = 0; G2antt1.ShowFocusRect = false; G2antt1.Columns.Add("Column 1").Def(2) = true; G2antt1.Items.AddItem("Button 1"); G2antt1.Items.AddItem("Button 2"); G2antt1.Columns.Add("Column 2"); } </SCRIPT> </BODY> |
163 |
How do I change the visual aspect of the drop down filter button, using EBN
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn"); G2antt1.Background(0) = 16777216; G2antt1.Columns.Add("Filter").DisplayFilterButton = true; } </SCRIPT> </BODY> |
162 |
How do I enable resizing the columns at runtime
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.ColumnsAllowSizing = true; G2antt1.MarkSearchColumn = false; G2antt1.HeaderVisible = false; G2antt1.Columns.Add("Column 1"); G2antt1.Columns.Add("Column 2"); G2antt1.DrawGridLines = 2; var var_Items = G2antt1.Items; var_Items.CellValue(var_Items.AddItem("Item 1"),1) = "Sub Item 1"; var var_Items1 = G2antt1.Items; var_Items1.CellValue(var_Items1.AddItem("Item 2"),1) = "Sub Item 2"; } </SCRIPT> </BODY> |
161 |
How can I select the second inner column when spliting the cells
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.SelectColumnInner = 1; G2antt1.FullRowSelect = false; G2antt1.DrawGridLines = -1; G2antt1.Columns.Add("Column"); var var_Items = G2antt1.Items; var_Items.CellValue(null,var_Items.SplitCell(var_Items.AddItem("Split Cell 1.1"),0)) = "Split Cell 2.1"; var_Items.CellValue(null,var_Items.SplitCell(var_Items.AddItem("Split Cell 1.2"),0)) = "Split Cell 2.2"; var_Items.SelectItem(var_Items.FirstVisibleItem) = true; } </SCRIPT> </BODY> |
160 |
How can I sort by multiple columns
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.SingleSort = false; G2antt1.Columns.Add("C1").SortOrder = 1; G2antt1.Columns.Add("C2").SortOrder = 2; G2antt1.Columns.Add("C3").SortOrder = 1; } </SCRIPT> </BODY> |
159 |
How can I add several columns to control's sort bar
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.SortBarVisible = true; G2antt1.SortBarColumnWidth = 48; G2antt1.Columns.Add("C1").SortOrder = 1; G2antt1.Columns.Add("C2").SortOrder = 2; } </SCRIPT> </BODY> |
158 |
How can I change the width of the columns being displayed in the sort bar
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.SortBarVisible = true; G2antt1.SortBarColumnWidth = 48; G2antt1.Columns.Add("C1").SortOrder = 1; G2antt1.Columns.Add("C2").SortOrder = 2; } </SCRIPT> </BODY> |
157 |
How can I change the height of the sort bar's
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.SortBarVisible = true; G2antt1.SortBarHeight = 48; } </SCRIPT> </BODY> |
156 |
How can I change the sort bar's foreground color
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.SortBarVisible = true; G2antt1.ForeColorSortBar = 255; } </SCRIPT> </BODY> |
155 |
How can I change the visual appearance of the control's sort bar, using EBN files
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn"); G2antt1.VisualAppearance.Add(2,"c:\\exontrol\\images\\pushed.ebn"); G2antt1.SortBarVisible = true; G2antt1.BackColorSortBar = 16777216; G2antt1.BackColorSortBarCaption = 33554432; G2antt1.Appearance = 0; } </SCRIPT> </BODY> |
154 |
How can I change the sort bar's background color
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.SortBarVisible = true; G2antt1.BackColorSortBar = 255; G2antt1.BackColorSortBarCaption = 128; } </SCRIPT> </BODY> |
153 |
How can I change the default caption being displayed in the control's sort bar
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.SortBarVisible = true; G2antt1.SortBarCaption = "new caption"; } </SCRIPT> </BODY> |
152 |
How can I show the locked / fixed items on the bottom side of the control
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.ShowLockedItems = true; G2antt1.Columns.Add("Column"); var var_Items = G2antt1.Items; var_Items.LockedItemCount(1) = 2; var_Items.CellValue(var_Items.LockedItem(1,0),0) = "locked item 1"; var_Items.CellValue(var_Items.LockedItem(1,1),0) = "locked item 2"; var_Items.AddItem("un-locked item"); } </SCRIPT> </BODY> |
151 |
How can I show the locked / fixed items
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.ShowLockedItems = true; G2antt1.Columns.Add("Column"); var var_Items = G2antt1.Items; var_Items.LockedItemCount(0) = 2; var_Items.CellValue(var_Items.LockedItem(0,0),0) = "locked item 1"; var_Items.CellValue(var_Items.LockedItem(0,1),0) = "locked item 2"; var_Items.AddItem("un-locked item"); } </SCRIPT> </BODY> |
150 |
How can I hide the locked / fixed items
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.ShowLockedItems = false; G2antt1.Columns.Add("Column"); var var_Items = G2antt1.Items; var_Items.LockedItemCount(0) = 1; var_Items.CellValue(var_Items.LockedItem(0,0),0) = "locked item"; var_Items.AddItem("un-locked item"); } </SCRIPT> </BODY> |
149 |
How can I show the control's sort bar
|
148 |
How can I stretch a picture on the control's header, when multiple levels are displayed, so it is not tiled
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.PictureLevelHeader = G2antt1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\colorize.gif`)"); G2antt1.PictureDisplayLevelHeader = 49; G2antt1.Columns.Add("S").Width = 32; G2antt1.Columns.Add("Level 1").LevelKey = 1; G2antt1.Columns.Add("Level 2").LevelKey = 1; G2antt1.Columns.Add("Level 3").LevelKey = 1; G2antt1.Columns.Add("E1").Width = 32; G2antt1.Columns.Add("E2").Width = 32; G2antt1.Columns.Add("E3").Width = 32; G2antt1.Columns.Add("E4").Width = 32; } </SCRIPT> </BODY> |
147 |
How can I display a picture on the control's header, when multiple levels are displayed, so it is not tiled
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.PictureLevelHeader = G2antt1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\colorize.gif`)"); G2antt1.PictureDisplayLevelHeader = 18; G2antt1.Columns.Add("S").Width = 32; G2antt1.Columns.Add("Level 1").LevelKey = 1; G2antt1.Columns.Add("Level 2").LevelKey = 1; G2antt1.Columns.Add("Level 3").LevelKey = 1; G2antt1.Columns.Add("E").Width = 32; } </SCRIPT> </BODY> |
146 |
How can I display a picture on the control's header, when multiple levels are displayed
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.PictureLevelHeader = G2antt1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"); G2antt1.Columns.Add("S").Width = 32; G2antt1.Columns.Add("Level 1").LevelKey = 1; G2antt1.Columns.Add("Level 2").LevelKey = 1; G2antt1.Columns.Add("Level 3").LevelKey = 1; } </SCRIPT> </BODY> |
145 |
How can I change the header's background color, when multiple levels are displayed
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.BackColorLevelHeader = 250; G2antt1.Columns.Add("S").Width = 32; G2antt1.Columns.Add("Level 1").LevelKey = 1; G2antt1.Columns.Add("Level 2").LevelKey = 1; G2antt1.Columns.Add("Level 3").LevelKey = 1; } </SCRIPT> </BODY> |
144 |
Can I programmatically scroll the control
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.Columns.Add("Column"); G2antt1.Items.AddItem(0); G2antt1.Items.AddItem(1); G2antt1.Items.AddItem(2); G2antt1.Items.AddItem(3); G2antt1.PutItems(G2antt1.GetItems(0),null); G2antt1.PutItems(G2antt1.GetItems(0),null); G2antt1.ScrollPos(true) = 1; } </SCRIPT> </BODY> |
143 |
How do I disable expanding or collapsing an item when user presses the arrow keys
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.ExpandOnKeys = false; G2antt1.LinesAtRoot = -1; G2antt1.Columns.Add("Column 1"); var var_Items = G2antt1.Items; var h = var_Items.AddItem("Root"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.ExpandItem(h) = true; } </SCRIPT> </BODY> |
142 |
How do I expand automatically the items while user types characters to searching for something ( incremental searching )
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.ExpandOnSearch = true; G2antt1.LinesAtRoot = -1; G2antt1.AutoSearch = true; G2antt1.Columns.Add("Column").AutoSearch = 1; var var_Items = G2antt1.Items; var_Items.InsertItem(var_Items.InsertItem(var_Items.AddItem("text"),null,"some text"),null,"another text"); var_Items.InsertItem(var_Items.InsertItem(var_Items.AddItem("text"),null,"some text"),null,"another text"); } </SCRIPT> </BODY> |
141 |
Can I programmatically scroll the control
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.Columns.Add("Column"); G2antt1.Items.AddItem(0); G2antt1.Items.AddItem(1); G2antt1.Items.AddItem(2); G2antt1.Items.AddItem(3); G2antt1.PutItems(G2antt1.GetItems(0),null); G2antt1.PutItems(G2antt1.GetItems(0),null); G2antt1.Scroll(1,null); } </SCRIPT> </BODY> |
140 |
Do you have some function to load data from a safe array
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.Columns.Add("Column"); G2antt1.Items.AddItem(0); G2antt1.PutItems(G2antt1.GetItems(0),null); } </SCRIPT> </BODY> |
139 |
Do you have some function to retrieve all items to a safe array
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.Columns.Add("Column"); G2antt1.Items.AddItem(0); G2antt1.PutItems(G2antt1.GetItems(0),null); G2antt1.Items.AddItem(1); G2antt1.PutItems(G2antt1.GetItems(0),null); G2antt1.Items.AddItem(2); G2antt1.PutItems(G2antt1.GetItems(0),null); G2antt1.Items.AddItem(3); } </SCRIPT> </BODY> |
138 |
How can still display the selected items when the control loses the focus
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.HideSelection = false; G2antt1.Columns.Add("Column"); var var_Items = G2antt1.Items; var_Items.AddItem("Item 3"); var_Items.AddItem("Item 1"); var_Items.SelectItem(var_Items.AddItem("Item 2")) = true; } </SCRIPT> </BODY> |
137 |
How can I hide a column
|
136 |
How can I ensure that a column is visible and fits the control's client area
|
135 |
I've seen that the width of the tooltip is variable. Can I make it larger
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.ToolTipWidth = 328; G2antt1.Columns.Add("tootip").ToolTip = "this is a tooltip that should be very very very very very very very long"; } </SCRIPT> </BODY> |
134 |
How do I disable showing the tooltip for all control
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.ToolTipDelay = 0; G2antt1.Columns.Add("tootip").ToolTip = "this is a tooltip assigned to a column"; } </SCRIPT> </BODY> |
133 |
How do I let the tooltip being displayed longer
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.ToolTipPopDelay = 10000; G2antt1.Columns.Add("tootip").ToolTip = "this is a tooltip assigned to a column"; } </SCRIPT> </BODY> |
132 |
How do I show the tooltip quicker
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.ToolTipDelay = 1; G2antt1.Columns.Add("tootip").ToolTip = "this is a tooltip assigned to a column"; } </SCRIPT> </BODY> |
131 |
How do I change the caption being displayed in the control's filter bar
|
130 |
How do I disable expanding or collapsing an item when user double clicks it
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.ExpandOnDblClick = false; G2antt1.LinesAtRoot = -1; G2antt1.Indent = 13; G2antt1.Columns.Add("Column 1"); var var_Items = G2antt1.Items; var h = var_Items.AddItem("Root"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.ExpandItem(h) = true; } </SCRIPT> </BODY> |
129 |
How do I search case sensitive, using your incremental search feature
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.AutoSearch = true; G2antt1.ASCIILower = ""; var var_Columns = G2antt1.Columns; var_Columns.Add("exStartWith").AutoSearch = 0; var_Columns.Add("exContains").AutoSearch = 1; var var_Items = G2antt1.Items; var_Items.CellValue(var_Items.AddItem("text"),1) = "another text"; var var_Items1 = G2antt1.Items; var_Items1.CellValue(var_Items1.AddItem("text"),1) = "another text"; } </SCRIPT> </BODY> |
128 |
How do I disable the control
|
127 |
How do I enable the incremental search feature within a column
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.AutoSearch = true; var var_Columns = G2antt1.Columns; var_Columns.Add("exStartWith").AutoSearch = 0; var_Columns.Add("exContains").AutoSearch = 1; var var_Items = G2antt1.Items; var_Items.CellValue(var_Items.AddItem("text"),1) = "another text"; var var_Items1 = G2antt1.Items; var_Items1.CellValue(var_Items1.AddItem("text"),1) = "another text"; } </SCRIPT> </BODY> |
126 |
How do I call your x-script language
|
125 |
How do I call your x-script language
|
124 |
How do I show alternate rows in different background color
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.BackColorAlternate = 15790320; G2antt1.Columns.Add("Column"); var var_Items = G2antt1.Items; var_Items.AddItem("Item 1"); var_Items.AddItem("Item 2"); var_Items.AddItem("Item 3"); var_Items.AddItem("Item 4"); var_Items.AddItem("Item 5"); } </SCRIPT> </BODY> |
123 |
How do I enlarge the drop down filter window
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.FilterBarDropDownHeight = -320; var var_Column = G2antt1.Columns.Add("Column"); var_Column.DisplayFilterButton = true; var_Column.FilterBarDropDownWidth = -320; G2antt1.Items.AddItem("Item 1"); G2antt1.Items.AddItem("Item 2"); } </SCRIPT> </BODY> |
122 |
How do I filter programmatically the control
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { var var_Column = G2antt1.Columns.Add("Column"); var_Column.DisplayFilterButton = true; var_Column.FilterType = 3; var_Column.Filter = "Item*"; G2antt1.Items.AddItem("Item 1"); G2antt1.Items.AddItem(""); G2antt1.Items.AddItem("Item 2"); G2antt1.ApplyFilter(); } </SCRIPT> </BODY> |
121 |
How do I change the font of the control's filterbar
|
120 |
Can I apply an EBN skin to the control's filter bar so I can change its visual appearance
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn"); G2antt1.FilterBarBackColor = 16777216; var var_Column = G2antt1.Columns.Add("Column"); var_Column.DisplayFilterButton = true; var_Column.FilterType = 1; G2antt1.ApplyFilter(); } </SCRIPT> </BODY> |
119 |
How do I change the background color of the control's filterbar
|
118 |
How do I change the foreground color of the control's filterbar
|
117 |
How do I change the height of the control's filterbar
|
116 |
How do I change the header's foreground color
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.ForeColorHeader = 255; G2antt1.Columns.Add("Column 1"); G2antt1.Columns.Add("Column 2"); G2antt1.Items.AddItem("Item 1"); } </SCRIPT> </BODY> |
115 |
I have a picture on the control's background, the question is how do I draw selection as semi-transparent
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.Picture = G2antt1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"); G2antt1.SelBackMode = 1; G2antt1.Columns.Add("Column"); G2antt1.Items.AddItem("Item 1"); G2antt1.Items.AddItem("Item 2"); } </SCRIPT> </BODY> |
114 |
It seems that the control uses the TAB key, is there any way to avoid that
|
113 |
I have FullRowSelect property on False, how do I force the user to select cells only in a specified column
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.SelectColumnIndex = 1; G2antt1.FullRowSelect = false; G2antt1.SelectColumn = true; G2antt1.Columns.Add("Column 1"); G2antt1.Columns.Add("Column 2"); var var_Items = G2antt1.Items; var_Items.CellValue(var_Items.AddItem("Item 1"),1) = "SubItem 1"; } </SCRIPT> </BODY> |
112 |
How do I assign a database to your control, using ADO, ADOR or ADODB objects
|
111 |
How do I change the visual appearance effect for the selected item, using EBN
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn"); G2antt1.SelBackColor = 16777216; G2antt1.SelForeColor = 0; G2antt1.ShowFocusRect = false; G2antt1.Columns.Add("Column"); G2antt1.Items.AddItem(0); G2antt1.Items.AddItem(1); } </SCRIPT> </BODY> |
110 |
How do I change the colors for the selected item
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.SelBackColor = 0; G2antt1.Columns.Add("Column"); G2antt1.Items.AddItem(0); G2antt1.Items.AddItem(1); } </SCRIPT> </BODY> |
109 |
How can I hide the frame/rectangle arround the focused item
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.BeginUpdate(); G2antt1.SelBackColor = G2antt1.BackColor; G2antt1.SelForeColor = G2antt1.ForeColor; G2antt1.ShowFocusRect = false; G2antt1.Columns.Add("Column"); G2antt1.Items.AddItem(0); G2antt1.Items.AddItem(1); G2antt1.Items.AddItem(""); G2antt1.EndUpdate(); } </SCRIPT> </BODY> |
108 |
How can I change the control's font
|
107 |
I can't scroll to the end of the data. What can I do
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.ScrollBySingleLine = true; G2antt1.DrawGridLines = -2; G2antt1.Columns.Add("Column"); var var_Items = G2antt1.Items; var_Items.ItemHeight(var_Items.AddItem(0)) = 13; G2antt1.PutItems(G2antt1.GetItems(0),null); var var_Items1 = G2antt1.Items; var_Items1.ItemHeight(var_Items1.AddItem(1)) = 26; G2antt1.PutItems(G2antt1.GetItems(0),null); var var_Items2 = G2antt1.Items; var_Items2.ItemHeight(var_Items2.AddItem(2)) = 36; G2antt1.PutItems(G2antt1.GetItems(0),null); var var_Items3 = G2antt1.Items; var_Items3.ItemHeight(var_Items3.AddItem(3)) = 48; G2antt1.PutItems(G2antt1.GetItems(0),null); } </SCRIPT> </BODY> |
106 |
How do I specify the column where the tree lines / hierarchy are shown
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.LinesAtRoot = 1; G2antt1.TreeColumnIndex = 1; G2antt1.Columns.Add("Column 1"); G2antt1.Columns.Add("Column 2"); var var_Items = G2antt1.Items; var h = var_Items.AddItem("Root 1.1"); var_Items.CellValue(h,1) = "Root 1.2"; var_Items.CellValue(var_Items.InsertItem(h,null,"Child 1.1"),1) = "Child 1.2"; var_Items.CellValue(var_Items.InsertItem(h,null,"Child 2.1"),1) = "Child 2.2"; var_Items.ExpandItem(h) = true; h = var_Items.AddItem("Root 2.1"); var_Items.CellValue(h,1) = "Root 2.2"; var_Items.CellValue(var_Items.InsertItem(h,null,"Child 1.1"),1) = "Child 1.2"; } </SCRIPT> </BODY> |
105 |
How do I specify the indentation of the child items relative to their parents
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.LinesAtRoot = 1; G2antt1.Indent = 11; G2antt1.Columns.Add("Column"); var var_Items = G2antt1.Items; var h = var_Items.AddItem("Root 1"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.ExpandItem(h) = true; h = var_Items.AddItem("Root 2"); var_Items.InsertItem(h,null,"Child"); } </SCRIPT> </BODY> |
104 |
Is there any option to select an item using the right button of the mouse (rclick)
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.RClickSelect = true; G2antt1.Columns.Add("Column"); G2antt1.Items.AddItem("Item 1"); G2antt1.Items.AddItem("Item 2"); } </SCRIPT> </BODY> |
103 |
I have FullRowSelect property on False, how do I select a column
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.SelectColumnIndex = 1; G2antt1.FullRowSelect = false; } </SCRIPT> </BODY> |
102 |
How can I scroll columns one by one, not pixel by pixel
|
101 |
How can I enable multiple items selection
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { G2antt1.SingleSel = false; G2antt1.Columns.Add("Column"); G2antt1.Items.AddItem(0); G2antt1.Items.AddItem(1); G2antt1.Items.AddItem(2); } </SCRIPT> </BODY> |